import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/src/foundation/key.dart';
import 'package:flutter/src/widgets/framework.dart';

class DetailColorDot extends StatelessWidget {
  final Color? color;
  final bool check;
  const DetailColorDot({Key? key, this.color, this.check = false}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
        width: 22,
        height: 22,
        padding: EdgeInsets.all(3),
        decoration: BoxDecoration(
          border: Border.all(color: check?color as Color : Colors.transparent, width: 0.5),
          borderRadius: BorderRadius.circular(50),
        ),
        child: Container(
          decoration: BoxDecoration(
            color:color,
            borderRadius: BorderRadius.circular(50)
          ),
        ),
    );
    
  }
}